package io.github.wanggit.antrpc.commons.lb;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 *
 *
 * <pre>
 * /__rpc_lbs__/io.github.wanggit.antrpc.demo.api.HelloService
 * {
 * 	"lb": "io.github.wanggit.antrpc.client.zk.lb.WeightRandomLoadBalancer",
 * 	"clazz": "io.github.wanggit.antrpc.demo.api.HelloService"
 * 	"weights": {
 * 		"127.0.0.1:8089" : 5
 * 		"127.0.0.1:8088" : 1
 * 	}
 * }
 * </pre>
 */
@Data
public class LoadBalancerDTO implements Serializable {

    private static final long serialVersionUID = -6623984866465673197L;

    private String clazz;

    private String lb;

    private Map<String, Integer> weights;
}
